<template>
  <div class="block">
    <el-pagination
      background
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :page-size="100"
      layout="total, prev, pager, next"
      :total="Number(count)"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  props: ['count'],
  methods: {
    handleSizeChange(val) {
      this.$emit('pageChage', val)
    },
    handleCurrentChange(val) {
      this.$emit('pageChage', val)
    },
  },
  data() {
    return {}
  },
}
</script>

<style>
.block {
  margin-top: 20px;
}
</style>
